package LeetCode.NumOffer;

import java.util.Arrays;

/**
 * @author lumin
 * @date 2022/03/25 10:39
 **/
public class NumOffer17 {
    public static int[] printNumbers(int n) {
        int end = (int)Math.pow(10, n) - 1;
        int[] res = new int[end];
        for(int i = 0; i < end; i++)
            res[i] = i + 1;
        return res;
    }

    public static void main(String[] args) {
        System.out.println(Arrays.toString(printNumbers(2)));
    }
}